#include <iostream>
#include "Texture.h"
#include "Animation.h"
#include "ModelMgr.h"
#include <string>

int main()
{
	ModelMgr mm;

	Animation *a = new Animation[2];
	a[0].setAnimation("ani1");
	a[1].setAnimation("ani2");
	
	Texture *t = new Texture[2];
	t[0].setTexture("text1");
	t[1].setTexture("text2");
	
	Model * m = mm.newModel(2,2,a,t,"model");
	
	Animation *a2 = m->getAnimation();
	Texture *t2 = m->getTextures();

	std::cout<<m->getName()<<std::endl;
	for(int i=0;i<2;i++)
	{
		std::cout<<a2[i].getAnimation()<<std::endl;
		std::cout<<t2[i].getTexture()<<std::endl;
	}
	
	Report * r = mm.getReport();
	
	std::cout<<"Models:"<<r->getCantModels();
	std::cout<<"Animations:"<<r->getCantAnimations();
	std::cout<<"Textures:"<<r->getCantTextures();

	Model * m1 = mm.newModel(0,2,a,t,"model");
	Model * m2 = mm.newModel(2,0,a,t,"model");
	std::cin.get();
	return 0;
}

